const express = require('express');
const router = express.Router();
const categoryController = require('../controllers/categoryController');

// 获取所有分类
router.get('/', categoryController.getCategories);

// 获取单个分类
router.get('/:id', categoryController.getCategoryById);

module.exports = router;